package Presentation;

import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.control.Button;

public class BoutonRafraichir extends Button
{
    FenetrePrincipale fp;
    
    
    public BoutonRafraichir(final FenetrePrincipale fp, int l, int h){
        super("Rafraichir");
        this.setPrefSize(l,h);
        this.fp=fp;
        
        
        this.setOnAction(new EventHandler<ActionEvent>() {
            @Override public void handle(ActionEvent e) {
                fp.navigList.get(0).getEngine().reload();
            }
        });
    }
    
    
    
}
